<template>
  <div class="subjectContainer">
    <div class="list" v-for="(temp,index) in list" :key="index">
      <div class="listInfo">
        <div class="title">
          <!-- <span class="keywords">关键词一</span> -->
          <span>{{temp.title}}</span>
        </div>
        <div class="info">
          <div class="time">
            <span>{{temp.created_at | parseTime('{y}-{m}-{d}')}}</span>
            <span class="icon">丨</span>
          </div>
          <div class="see">
            <span class="iconfont icon-see2 see-icon"></span>
            <span>{{temp.hit}}</span>
          </div>
        </div>
      </div>
      <van-image fit="cover" :src="temp.poster | cover" alt="" class="videoImg"></van-image>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    list: {
      type: Array,
      default() {
        return [];
      }
    }
  }
};
</script>

<style lang="less">
.subjectContainer {
  width: 100%;
  padding: 2vw 4vw;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 10px 0;
  position: relative;
  .list {
    //   width: 350px;
    //   height: 285px;
    margin: 0 10px;
    padding: 10px 10px 30px;
    box-sizing: border-box;
    background: #fff;
    .listInfo {
      padding-top: 15px;

      .title {
        font-size: 18px;
        .keywords {
          margin-right: 10px;
          background: #ff0d2b;
          font-size: 12px;
          padding: 5px;
          color: #fff;
          border-radius: 5px;
        }
      }
      .info {
        padding: 10px 0px;
        display: flex;
        justify-content: flex-start;
        font-size: 12px;
        .icon {
          padding: 0 10px;
        }
        .see {
          display: flex;
          align-items: center;
          .see-icon {
            font-size: 18px;
          }
        }
      }
    }
  }
  .videoImg {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #dadada;
    border-radius: 10px;
  }
}
</style>